 <%@page import="java.awt.Button"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="doantotnghiep.model.Customer"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@page import="java.util.ArrayList"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"
	href="<c:url value="/resources/css/table.css" />" />
<link rel="stylesheet" type="text/css"
	href="<c:url value="/resources/css/button.css" />" />
<!-- 

<script	src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> -->

<title>Quản lý khách hàng</title>

</head>
<body>
	<div  align="center">
			<h1 style="color: blue;">KẾT QUẢ TÌM KIẾM THÔNG TIN KHÁCH HÀNG</h1>
				<div >
					<table id="searchcustomer">
						<tr>

							<th scope="col" abbr="Starter">Mã khách hàng</th>
							<th scope="col" abbr="Starter">Tên khách hàng</th>
							<th scope="col" abbr="Starter">Địa chỉ</th>
							<th scope="col" abbr="Starter">Điện thoại</th>
							<th scope="col" abbr="Starter"></th>
							<th scope="col" abbr="Starter"></th>
						</tr>
				
							<c:forEach items="${customerModel.customerDTOs}" var="customer"
								varStatus="status">
								<tr class="<c:if test="${status.count % 2 == 0}">even</c:if>">
									
									<td>${customer.id}</td>
									<td>${customer.fullName}</td>
									<td>${customer.address}</td>
									<td>${customer.telNumber}</td>
									<td>
										<a id="editcustomer"  
										href="#" onclick="updateCustomer(${customer.id})"><img src="<c:url value="/resources/images/edit-icon.png"/>" />
									</a></td>
									<td>
										<a id="deletestaff"
										href="#" onclick="deleteCustomer(${customer.id})"><img src="<c:url value="/resources/images/delete-icon1.png"/>" /> </a></td>
								</tr>
							</c:forEach>	
					</table>
					<div id="searchcustomerpaging"></div>
					<script type="text/javascript">
						var pager = new Pager('searchcustomer', 7);
						pager.init();
						pager.showPageNav('pager', 'searchcustomerpaging');
						pager.showPage(1);
					</script>
					<a href="#"><input class="button" id="customersearchclose" type="button" 
						value="close"> </a> 
				</div>
			</div>
</body>
</html>